/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.LoaiKhachHangBLL;
import edu.nii.qlks.DataTransferObject.LoaiKhachHangInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class LoaiKhachHangControl {
    LoaiKhachHangBLL LoaiKhachHang = new LoaiKhachHangBLL();
 
    
    public ArrayList LayDS() throws Exception{
        return LoaiKhachHang.LayDS();
    }
     
    public ArrayList LayDS(String Condition) throws Exception{
         return LoaiKhachHang.LayDS(Condition);
    }
    
    public void Insert(LoaiKhachHangInfo loaiKhachHangInfo) throws Exception{
        LoaiKhachHang.Insert(loaiKhachHangInfo);
    }
    
    public void Update(LoaiKhachHangInfo loaiKhachHangInfo) throws Exception{
        LoaiKhachHang.Update(loaiKhachHangInfo);
    }
    
    public void Delete(LoaiKhachHangInfo loaiLoaiKhachHangInfo) throws Exception{
        LoaiKhachHang.Delete(loaiLoaiKhachHangInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return LoaiKhachHang.TaoMaTuDong(maGoc, batDau);
     }
    
    public ArrayList LayMaLoaiKhach(String TenLoaiKhach) throws Exception{
        return LoaiKhachHang.LayMaLoaiKhach(TenLoaiKhach);
    }
}
